import layout from '@/layout'
export default {
  path: '/approval',
  name: 'approval',
  component: layout,
  children: [{
    path: '',
    name: 'approval',
    component: () => import('@/views/approval'),
    meta: {
      title: '审批',
      icon: 'tree-table'
    }
  }, {
    path: 'process_dimission/detail/:id?',
    name: 'process_dimission',
    component: () => import('@/views/approval/detail'),
    meta: {
      title: '离职申请',
      icon: 'tree-table'
    },
    hidden: true
  },
  {
    path: 'process_overtime/detail/:id?',
    name: 'process_overtime',
    component: () => import('@/views/approval/detail'),
    meta: {
      title: '加班申请',
      icon: 'tree-table'
    },
    hidden: true
  },
  {
    path: 'process_leave/detail/:id?',
    name: 'process_leave',
    component: () => import('@/views/approval/detail'),
    meta: {
      title: '请假申请',
      icon: 'tree-table'
    },
    hidden: true
  }
  ]
}
